package com.landeqing.dao;

import com.landeqing.model.Address;
import com.landeqing.model.City;
import com.landeqing.model.Province;
import com.landeqing.model.Xian;

import java.util.List;

public interface OrderAddressDao {
    /***
     * 添加收货人信息
     * @param address
     * @return
     */
    public int save(Address address);

    /***
     * 获取收货人信息
     * @return
     */
    public List<Address> getList();

    /***
     * 获得省级信息
     * * @return
     */
  public List<Province>getProvinceList();

    /***
     * 获得城市信息
     * @param p_id
     * @return
     */
  public List<City> getCityListById(int p_id);

    /***
     * 获得县的信息
     * @param c_id
     * @return
     */
  public List<Xian> getXianListById(int c_id);

public  Province getProvinceById(int id);
public  City getCityById(int id);
public  Xian getXianById(int id);
public boolean update(Address address);
public boolean delete(int id);
public  Address getAddressById(int id);
}
